package com.zlq.Top;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.messages")
public class TopRec {
    @RabbitHandler
    public void process(String dd){
        System.out.println("接收者一为"+dd);
    }
}
